package IC.AST;

import java.util.LinkedList;

public class VirtualFunctionCall extends FunctionCall
{
	private Expression _objectName;
	
	public Object Visit(Visitor visitor) { return visitor.Visit(this); }
	
	public VirtualFunctionCall (Interval interval, Expression objectName, String functionName, LinkedList<Expression> params)
	{
		super(interval, functionName, params);
		_objectName = objectName;
		GiveBirth(_objectName);
	}
	
	public Expression GetInvokedExpression() { return _objectName; } 
}
